package com.youbo.cloudmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.youbo.cloudmall.product.vo.Catelog2Vo;
import com.youbo.common.utils.PageUtils;
import com.youbo.cloudmall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author youbo
 * @email xiaobo.you@outlook.com
 * @date 2021-09-26 21:11:38
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    //找到catelogId的完整路径
    //父-子-孙
    Long[] findCatelogPath(Long catelogId);

    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();

    Map<String,List<Catelog2Vo>> getCategoryJson();
}

